﻿<UserControl x:Class="MefBasic.ShellView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:cal="clr-namespace:Microsoft.Practices.Composite.Presentation.Regions;assembly=Microsoft.Practices.Composite.Presentation" 
             xmlns:MefBasic="clr-namespace:MefBasic" 
             xmlns:Converters="clr-namespace:MefBasic.Converters"
             >
	<UserControl.Resources>
    <Converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
	</UserControl.Resources>
    <Grid>
        <DockPanel>
            <Border DockPanel.Dock="Top">
                <ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.TopRegion}" ></ContentControl>
            </Border>
            <Border DockPanel.Dock="Bottom">
                <ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.BottomRegion}" ></ContentControl>
            </Border>
            <DockPanel DockPanel.Dock="Top">
                <Border DockPanel.Dock="Left">
                    <ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.LeftRegion}" ></ContentControl>
                </Border>
                <Border DockPanel.Dock="Right">
                    <ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.RightRegion}" ></ContentControl>
                </Border>
                <Border DockPanel.Dock="Left">
                    <ContentControl cal:RegionManager.RegionName="{x:Static MefBasic:RegionNames.MiddleRegion}" ></ContentControl>
                </Border>
            </DockPanel>
        </DockPanel>
        <Border Background="{DynamicResource DisableBackgroundColor}" Opacity="0.3" BorderThickness="0"
          Visibility="{Binding Disabled, Converter={StaticResource BoolToVisibilityConverter}}">
        </Border>
    </Grid>
</UserControl>
